package com.mtons.mblog.modules.service;

import com.mtons.mblog.modules.data.AnswerFavoriteVO;
import com.mtons.mblog.modules.data.FavoriteVO;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

public interface AnswerFavoriteService {
    /**
     * 查询用户收藏记录
     * @param pageable
     * @param userId
     * @return
     */
    Page<AnswerFavoriteVO> pagingByUserId(Pageable pageable, long userId);

    void add(long userId, long answerId);
    void delete(long userId, long answerId);
    void deleteByAnswerId(long answerId);
}
